package com.zk.bytecode.trace;

import java.util.Queue;
import java.util.concurrent.LinkedBlockingQueue;

public class InMemorySaver {


    private static Queue<StackTraceManagement> holderQueue = new LinkedBlockingQueue<>();

    /**
     * @param holder
     */
    public static void save(StackTraceManagement holder) {
        holderQueue.offer(holder);
    }

    /**
     * @return
     */
    public static StackTraceManagement getHolder() {
        return holderQueue.poll();
    }
}
